package com.scholarship.modules.backend.mapper;

import com.scholarship.modules.login.entity.RewardTime;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author zhz
 * @date 2021/8/30 9:37
 * 备注：奖学金时间的CURD
 */
@Repository
public interface RewardTimeMapper {

    //增加奖学金申请时间
    Integer addSubmitTime(Date start,Date end) throws Exception;

    //增加奖学金申诉时间
    Integer addAppealTime(Date start,Date end) throws Exception;

    //同时增加奖学金申请、申诉时间
    Integer addRewardTime(RewardTime reward) throws Exception;

    //删除奖学金奖学金申请时间
    Integer deleteSubmitTime() throws Exception;

    //删除奖学金奖学金申诉时间
    Integer deleteAppealTime() throws Exception;

    //删除奖学金奖学金申请、申诉时间
    Integer deleteRewardTime() throws Exception;

    //修改奖学金申请时间
    Integer updateSubmitTime(Date start,Date end) throws Exception;

    //修改奖学金申诉时间
    Integer updateAppealTime(Date start,Date end) throws Exception;

    //同时修改奖学金申请、申诉时间
    Integer updateRewardTime(RewardTime reward) throws Exception;

    //获取奖学金时间
    RewardTime getRewardTime() throws Exception;
}
